﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace BowlingDO.Models
{
    public class Group : EntityBase
    {
        [Display(Name = "Nombre del grupo")]
        [Required(ErrorMessage = "El nombre del grupo es requerido.", AllowEmptyStrings = false)]
        public string Name { get; set; }

        [Display(Name = "Imagen")]
        public string PhotoUrl { get; set; }

        [Display(Name = "Descripción")]        
        public string Description { get; set; }

        [Display(Name = "Email")]
        [EmailAddress(ErrorMessage = "Email invalido.")]
        public string Email { get; set; }

        [Display(Name = "Web")]
        public string Web { get; set; }
    }
}